-- GENERATED SPELL FOR [Cloud Serpent] --


function spell0_4117(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(8246,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4117', 3500, 1)
end

function Sorts_4117(pUnit, Event)
local choix_sorts_4117 = math.random(0, 0)
if choix_sorts_4117 == 0 then
pUnit:RegisterEvent('spell0_4117', 1, 1)
end
end

function mob4117_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4117', math.random(1500, 3000), 1)
end

function mob4117_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4117_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4117_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4117, 1, 'mob4117_Action')
RegisterUnitEvent(4117, 2, 'mob4117_Leave')
RegisterUnitEvent(4117, 3, 'mob4117_Kill')
RegisterUnitEvent(4117, 4, 'mob4117_Die')
